/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef PROTOCOL_H
#define PROTOCOL_H

#include <mc/core/object.h>
#include <mc/engine/base.h>

namespace dev {

class MC_API protocol_object : public mc::core::object {
public:
    protocol_object(mc::engine::abstract_object* parent);
    ~protocol_object();

    virtual void send_request();
    virtual void unpack_response_data();
    virtual void construct_request_data();
    virtual void validate_request_params();
    virtual void send();
    virtual void after_response();
    virtual void pre_response();
    virtual void after_request();
    virtual void pre_request();
    virtual void init();
};

} // namespace dev

#endif // PROTOCOL_H